home *** CD-ROM | disk | FTP | other *** search
/ Games of Daze / Infomagic - Games of Daze (Summer 1995) (Disc 1 of 2).iso / x2ftp / msdos / watcom / w_modey / yprim.hpp < prev    next >
C/C++ Source or Header  |  1994-02-12  |  921b  |  34 lines

  1. #ifndef Y_PRIMITIVES_HPP
  2.     #define Y_PRIMITIVES_HPP
  3.  
  4. #include "ytypes.hpp"
  5.  
  6. extern unsigned char *RowsY[200];
  7.  
  8. // Mode set functions
  9. void set80x25(void);
  10. void set320x200x256(void);
  11.  
  12. // Waits for vertical retrace
  13. void wait_for_retrace(void);
  14.  
  15. // Screen clearing functions
  16. void clear(BYTE color);
  17.  
  18. // Drawing functions
  19. void putpixel(COORD x, COORD y, BYTE color);
  20. BYTE getpixel(COORD x, COORD y);
  21. void box(COORD x1, COORD y1, COORD x2, COORD y2, BYTE color);
  22. void filledbox(COORD x1, COORD y1, COORD x2, COORD y2, BYTE color);
  23. void circle(COORD x, COORD y, DIST r, BYTE color);
  24. void filledcircle(COORD x, COORD y, DIST r, BYTE color);
  25. void line(COORD lx1, COORD ly1, COORD lx2, COORD ly2, BYTE color);
  26.  
  27. // Text output functions ** all of these
  28. int  loadfont(char *fname);
  29. void putch(COORD x, COORD y, char c, BYTE color);
  30. void putstring(COORD x, COORD y, char *str, BYTE color);
  31.  
  32. #endif
  33.  
  34.